#include "ScnsIcm42605.c.h"

#if defined(SCNS_ICM42605_ENABLE)&&SCNS_ICM42605_ENABLE==1

ScnsStatus scnsBspIcm42605Init(ScnsIcm42605Enum icmN)
{
    spi_init(SPI_2,SPI_MODE0,system_clock/6,SPI2_SCK_B13,SPI2_MOSI_B15,SPI2_MISO_B14,SPI2_CS_B12);
    return SCNS_STATUS_OK;
}

ScnsStatus scnsBspIcm42605PostInit(ScnsIcm42605Enum icmN)
{
    return SCNS_STATUS_OK;
}

void scnsBspIcm42605RW(ScnsIcm42605Enum icmN,uint8*val,uint32 num)
{
    spi_transfer_8bit(SPI_2,val,val,num);
}

#endif